home *** CD-ROM | disk | FTP | other *** search
- !---------------------------------------------------------------------!
- ! !
- ! Copyright (c) 1991 !
- ! by CompuServe Incorporated, Columbus, Ohio !
- ! !
- ! The information in this software is subject to change without !
- ! notice and should not be construed as a commitment by CompuServe. !
- ! !
- ! DATEX Script: !
- ! Connect to Datex-P !
- ! Success: returns %Success !
- ! Failure: saves error msg in %FailureMsg and returns %Failure !
- ! !
- ! $Revision:: 1.5 $ !
- ! !
- !---------------------------------------------------------------------!
- ! !
- ! This version fixes the Datex-P problems with the east-german nodes !
- ! !
- !---------------------------------------------------------------------!
-
- show "Connecting to Datex-P";
- Tries = 5;
- on cancel goto Return_Cancel;
-
- Wait_Datex:
-
- if Tries = 0 goto Datex_Failure;
-
- Tries = Tries - 1;
- wait ! Just wait a while
- "VOID" goto Void_Label !
- until 15; !
- send ".";
- wait ! wait again
- "VOID" goto Void_Label !
- until 15; !
- send %CR;
- wait
- "DATEX-P:" goto Send_Datex_Host
- until 30;
-
- goto Wait_Datex;
-
- Send_Datex_Host:
-
- send "r 4569002330" & %CR;
-
- wait
- "User ID:" goto Return_Success,
- "Host Name:" goto Return_Success
- until 60;
-
- goto Wait_Datex;
-
- Datex_Failure:
- define %FailureMsg = "Datex-P not responding";
- exit %Failure;
-
- Return_Cancel:
- exit %Cancel;
-
- Return_Success:
- exit %Success;